package com.example.security.service;

/**
 * @program: web-qxAbilityShow
 * @description:
 * @author: LiWeiLong
 * @create: 2019-12-30 14:04
 **/
public interface TokenManager {

    /**
     * 根据userName 生成token
     * @param username
     * @return
     */
    String createToken(String username);

    /**
     * 解析Token
     * @param token
     * @return
     */
    String getUserFromToken(String token);

}
